<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
	<link rel="stylesheet" href="css/bootstrap.min.css">
	<link rel="stylesheet" href="css/templatemo-style.css">
	<%
		String menuNum = (String) request.getParameter("menu_num");
		int menuNumInt = 0;
		if (menuNum != null) {
			try {
				menuNumInt = Integer.parseInt(menuNum);
			} catch (Exception e) {
				menuNumInt = 1;
			}
		}
	%> 
</head>
<body>
	<div class="tm-header">
		<div class="container-fluid">
			<div class="tm-header-inner">
				<a href="#" class="navbar-brand tm-site-name">Ameson</a>
				<nav class="navbar tm-main-nav">
					<button class="navbar-toggler hidden-md-up" type="button"
						data-toggle="collapse" data-target="#tmNavbar">&#9776;</button>
					<div class="collapse navbar-toggleable-sm" id="tmNavbar">
						<ul class="nav navbar-nav">
							<li class="nav-item <%if (menuNumInt == 1) {%>active<%}%>" ><a href="/" class="nav-link">首页</a></li>
							<li class="nav-item"><a href="#" class="nav-link">新随笔</a></li>
							<li class="nav-item <%if (menuNumInt == 3) {%>active<%}%>"><a href="/blog" class="nav-link">博客</a></li>
							<li class="nav-item"><a href="#" class="nav-link">联系</a></li>
						</ul>
					</div>
				</nav>
			</div>
		</div>
	</div>
	<script src="js/jquery-1.11.3.min.js"></script>
	<script src="js/tether.min.js"></script>
	<script src="js/bootstrap.min.js"></script>
</body>
</html>